package com.lbz.service;

import com.lbz.common.ServerResponse;
import com.lbz.entity.Category;

import java.util.List;

/**
 * @Author 林必昭
 * @Date 2019/6/22 21:54
 */

public interface CategoryService {

    //新增分类
    ServerResponse addCategory(String categoryName, Integer parentId);
    //删除分类
    ServerResponse<String> deleteCategory(Integer categoryId);
    //更新分类
    ServerResponse updateCategoryName(Integer categoryId,String categoryName);
    //获取品类子节点(平级)
    ServerResponse<List<Category>> selectChildrenParallelCategory(Integer categoryId);
    //获取当前分类id及递归子节点categoryId
    ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);
}
